//
//  testView.m
//  XIBView
//
//  Created by centling on 15/9/22.
//  Copyright © 2015年 centling. All rights reserved.
//

#import "TestView.h"

@implementation TestView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

+ (instancetype)testView
{
    return [[[NSBundle mainBundle] loadNibNamed:@"TestView" owner:nil options:nil] lastObject];
}

- (void)awakeFromNib
{
    self.frame = CGRectMake(0, 0, [[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height * 0.5) ;
}

//- (instancetype)initWithCoder:(NSCoder *)aDecoder {
//    if (self = [super initWithCoder:aDecoder]) {
//        [[NSBundle mainBundle]loadNibNamed:@"TestView" owner:self options:nil];
//        [self addSubview:self.view];
//    }
//    return self;
//}

@end
